{% extends 'core/panel.html' %}
{% load hash_filters %}
{% load comp_filters %}
{% block title %} zoyoe sydneyscent {% endblock %}

{% block css_link %}
  <link rel="stylesheet" href="/css/contrib/element.css" type="text/css" media="all" charset="utf-8"/>
  <link rel="stylesheet" href="/css/contrib/general.css" type="text/css" media="all" charset="utf-8"/>
  <link rel="stylesheet" href="/css/contrib/dialog.css" type="text/css" media="all" charset="utf-8"/>
  <link rel="stylesheet" href="/css/contrib/nav.css" type="text/css" media="all" charset="utf-8"/>
{% endblock %}

{% block js_link %}
  <script type="text/javascript" charset="utf-8"
          src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js">
  </script>
  <script type="text/javascript" src="/js/comps.js"></script>
  <script type="text/javascript" src="/js/zoyoe.js"></script>
  <script type="text/javascript" src="/js/ele.js"></script>
  <script type="text/javascript" src="/js/ui.js"></script>
  <script type="text/javascript">
    function document_load(){
      YUI().use('node','event','io-form',function(Y){
        zoyoe.InitZoyoe(false,Y,{static_panel:true});
        zoyoe.service_name = '{{SERVICE.name}}';
        zoyoe.comps['{{PATH}}'] = InitItems(zoyoe,'{{PATH}}');
        zoyoe.admin = InitAdmin(zoyoe);
        var upinfo = new update_info("/glue/{{SERVICE.name}}/data/{{PATH}}/");
        zoyoe.ui.ShowPanel('data',{path:'{{PATH}}'},upinfo,function(){
       });
      });
    }
  </script>

{% endblock %}

{% block nav %}
  <div id="title-bar">
    <div class="nav">
      <div class="brand">
        <a href="/search/"><img src="/res/auadult.png" height="30px"/></a>
      </div>
      <div class="nav-button-tray">
        <a class="nav-button" href="/search/">Homepage</a>
        <a class="nav-button" href="/map/">Map</a>
        <a class="nav-button" href="/forum/">Forum</a>
        <a class="nav-button" href="/mark/">Recommendation</a>
        <a class="nav-button" onclick="zoyoe.admin.ShowAboutUsDialog()">About Us</a>
        {% if user.is_authenticated %}
        <div class="nav-button" id="nav-button-welcome" style="width:120px;" align="center">
          <span style="text-transform">Service Config</span> 
          <img src="/res/welcome_arrow.png"></img>
          <div id="nav-welcome" align="left">
            <ul>
              <li><a onclick ="zoyoe.comps['LAYOUT'].Template()">Change Template</a></li>
              <li><a onclick ="zoyoe.comps['LAYOUT'].Color()">Change Color Theme</a></li>
              <li><a onclick ="zoyoe.admin.EnableForum('{{SERVICE.name}}')">Enable Forum</a></li>
              <li id="nav-welcome-separate"></li>
              <li><a onclick ="zoyoe.admin.ResetService('{{SERVICE.name}}')">Reset Service</a></li>
              <li><a onclick ="zoyoe.admin.DeleteService('{{SERVICE.name}}')">Delete Service</a></li>
            </ul>
          </div>
        </div>
        {% else %}
        <a class="nav-button" onclick ="zoyoe.admin.ShowLoginDialog()">Login</a>
        <a class="nav-button" onclick ="zoyoe.admin.ShowRegisterDialog()">Register</a>
        {% endif %}
        {% include "core/_usrmenu.html" %}
      </div>
    </div>
  </div>
{% endblock %}

{% block extra %}
<div id = 'panel' style="top:52px; z-index:20;">
  <div class='panel-hint general-title nav-sup dark'"> 
  </div>
  <div class='panel-content' style="top:90px;">
  </div>
  <div class='panel-left' style="top:90px;">
  </div>
  <div class='button-lane'>
  </div>
</div>
{% endblock %}


